//
//  ZYSTagTableViewCell.m
//  budejie
//
//  Created by oldSix_Zhu on 16/9/1.
//  Copyright © 2016年 Dason. All rights reserved.
//

#import "ZYSTagTableViewCell.h"
#import "ZYSBtnHeaderModels.h"
#import <UIImageView+WebCache.h>

@interface ZYSTagTableViewCell ()

 //名字
@property (weak, nonatomic) IBOutlet UILabel *nameLbl;

 //图片
@property (weak, nonatomic) IBOutlet UIImageView *headerImg;

 //关注
@property (weak, nonatomic) IBOutlet UILabel *fans_countLbl;

//V
@property (weak, nonatomic) IBOutlet UIImageView *VipImg;

@end

@implementation ZYSTagTableViewCell

-(void)setTagModel:(ZYSBtnHeaderModels *)tagModel
{
    _tagModel = tagModel;
    
    //名字
    self.nameLbl.text = tagModel.name;
    
    //头像
    self.headerImg.layer.cornerRadius = self.headerImg.bounds.size.height * 0.5;
    self.headerImg.layer.masksToBounds = YES;

    [self.headerImg sd_setImageWithURL:[NSURL URLWithString:tagModel.header]];
    
    //粉丝
    self.fans_countLbl.text =[NSString stringWithFormat:@"%@人关注", tagModel.fans_count];
    
    //vip
    if ([tagModel.jie_v isKindOfClass:[NSNumber class]])
    {
        self.VipImg.hidden = YES;
    }
    
    
}


- (IBAction)didClickGuanZhu:(UIButton *)sender
{
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
